package com.wy.service.impl;

import com.wy.dao.CustomerDao;
import com.wy.model.Customer;
import com.wy.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @描述
* @创建人 wangyue
* @创建时间2019/12/216:28
*/
@Service
public class CustomerServiceImpl implements CustomerService{

@Autowired
private CustomerDao customerDao;

@Override
public List<Customer> list(Customer customer) {
    return customerDao.list(customer);
    }

    @Override
    public Customer getById(String id) {
    return customerDao.getById(id);
    }

    @Override
    public void insert(Customer customer) {
    customerDao.insert(customer);
    }

    @Override
    public void update(Customer customer) {
    customerDao.update(customer);
    }

    @Override
    public int deletebth(String[] id) {
    return customerDao.deletebth(id);
    }
    }
